package com.yyk.springbatch.service;

import com.yyk.springbatch.dao.Person;
import org.springframework.batch.item.ItemProcessor;

/**
 * @author ljp
 * @CLASSNAME PersonItemProcessor
 * @date 2021/1/13 16:36
 * @description：
 */

public class PersonItemProcessor implements ItemProcessor<Person, String> {
    @Override
    public String process(Person person) throws Exception {

        String greeting = "Hello " + person.getFirstName() + " "
                + person.getLastName() + "!";


        System.out.println(greeting);
        return greeting;
    }
}
